<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>sortID="<?php echo $v['sort'];?>"  id="" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  
 
  <div class="myBox<?php echo $v['id'];?>" id="dituContent<?php echo $v['id'];?>"></div>
  
  <script type="text/javascript">
    //创建和初始化地图函数：
	// 百度地图API功能 
	var map = new BMap.Map("dituContent<?php echo $v['id'];?>");
	var point = new BMap.Point(<?php echo $v['baidupoint'];?>);
	var marker = new BMap.Marker(point);  // 创建标注
	map.addOverlay(marker);              // 将标注添加到地图中
	map.centerAndZoom(point, 15); 
	var opts = {
	  width : 200,     // 信息窗口宽度
	  height: 100,     // 信息窗口高度
	  title : "" , // 信息窗口标题
	  enableMessage:true,//设置允许信息窗发送短息
	  message:'<?php echo $v['content'];?>'
	}
	var infoWindow = new BMap.InfoWindow('<?php echo $v['content'];?>', opts);  // 创建信息窗口对象 
	var top_left_navigation = new BMap.NavigationControl();
	map.addControl(top_left_navigation);   
	map.openInfoWindow(infoWindow,point);  
	marker.addEventListener("click", function(){          
		map.openInfoWindow(infoWindow,point); //开启信息窗口
	});
</script>
</div>
